###############################################
##	Hack Title:		phpBB easyCMS
##	Hack Version:	1.0.1
##	Author:			Freakin' Booty ;-P
##	Inspirator:		Marc Philpott
##	Description:	Write articles and let users write comments about them. Features:
##						 Ability to create as many chapters as you want, and have subchapters.
##						 Full permissions system per chapter.
##						 Disable comments in full.
##						 Stop article and/or comment count.
##						 Ability to approve articles and comments before they are made public.
##						 Rate articles and/or comments.
##						 Disallow avatars, smilies, HTML and BBcode independent from the board configuration.
##						 Admins can post HTML independent from the CMS configuration.
##						 ...
##
##	Compatibility:	2.0.4
##
##	Installation Level: Easy
##	Installation Time: 10 - 15 minutes
##	Files To Edit: 7
##		includes/bbcode.php
##		includes/constants.php
##		includes/functions_post.php
##		includes/page_header.php
##		language/lang_english/lang_main.php
##		templates/subSilver/overall_header.tpl
##		templates/subSilver/subSilver.cfg
##
##	Included Files: Euhm... Just about enough?
##
##	History:
##		See the included file 'phpBB_easyCMS_version_history.txt'
##
##	Author Notes:
##		I would like to thank everyone who supported this hack, especially Marc Philpott because of offering
##		his idea's and input, and sweat and tears on his own version and this version.
##
##	Support:		http://www.phpbbhacks.com/forums
##	Copyright:		2003 phpBB easyCMS 1.0.1 - Freakin' Booty ;-P
##
###############################################
##   You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads.
##   Please visit http://www.phpbbhacks.com/forums for support.
###############################################
##
###############################################
##	This hack is released under the GPL License.
##	This hack can be freely used, but not distributed, without permission.
##	Intellectual Property is retained by the hack author(s) listed above.
###############################################

#
#-----[ COPY ]--------------------------------------------
#
# All files are relative to your phpBB root folder (i.e. phpBB2/)
#
cms_articles.php				=> cms_articles.php
cms_install.php					=> cms_install.php
cms_post_article.php			=> cms_post_article.php
cms_post_comment.php			=> cms_post_comment.php
cms_view_article.php			=> cms_view_article.php

admin/admin_cms_articles.php	=> admin/admin_cms_articles.php
admin/admin_cms_chapters_auth.php	=> admin/admin_cms_chapters_auth.php
admin/admin_cms_chapters_ug_auth.php	=> admin/admin_cms_chapters_ug_auth.php
admin/admin_cms_chapters.php	=> admin/admin_cms_chapters.php
admin/admin_cms_config.php		=> admin/admin_cms_config.php

cms_schemas/*					=> cms_schemas/

includes/cms_articles_navigate.php	=> includes/cms_articles_navigate.php
includes/cms_constants.php		=> includes/cms_constants.php
includes/cms_functions.php		=> includes/cms_functions.php
includes/cms_functions_post.php	=> includes/cms_functions_post.php

images/icons/*					=> images/icons/

language/lang_english/lang_cms.php	=>	language/lang_english/lang_cms.php

templates/subSilver/cms_article_posting_body.tpl	=> templates/subSilver/cms_article_posting_body.tpl
templates/subSilver/cms_article_posting_preview.tpl	=> templates/subSilver/cms_article_posting_preview.tpl
templates/subSilver/cms_articles_body.tpl	=> templates/subSilver/cms_articles_body.tpl
templates/subSilver/cms_articles_navigate.tpl	=> templates/subSilver/cms_articles_navigate.tpl
templates/subSilver/cms_articles_view.tpl	=> templates/subSilver/cms_articles_view.tpl
templates/subSilver/cms_chapterbox.tpl	=> templates/subSilver/cms_chapterbox.tpl
templates/subSilver/cms_comment_posting_body.tpl	=> templates/subSilver/cms_comment_posting_body.tpl

templates/subSilver/admin/cms_articles_body.tpl	=> templates/subSilver/admin/cms_articles_body.tpl
templates/subSilver/admin/cms_articles_edit_body.tpl	=> templates/subSilver/admin/cms_articles_edit_body.tpl
templates/subSilver/admin/cms_articles_view_body.tpl	=> templates/subSilver/admin/cms_articles_view_body.tpl
templates/subSilver/admin/cms_chapters_auth_body.tpl	=> templates/subSilver/admin/cms_chapters_auth_body.tpl
templates/subSilver/admin/cms_chapters_auth_ug.tpl	=> templates/subSilver/admin/cms_chapters_auth_ug.tpl
templates/subSilver/admin/cms_chapters_body.tpl	=> templates/subSilver/admin/cms_chapters_body.tpl
templates/subSilver/admin/cms_chapters_delete_body.tpl	=> templates/subSilver/admin/cms_chapters_delete_body.tpl
templates/subSilver/admin/cms_chapters_edit_body.tpl	=> templates/subSilver/admin/cms_chapters_edit_body.tpl
templates/subSilver/admin/cms_config_body.tpl	=> templates/subSilver/admin/cms_config_body.tpl

#
#-----[ RUN ]---------------------------------------------
#
# Make sure to run this file once as an administrator and then delete it immediately
# Make sure you have also deleted the directory cms_schemas!
#
cms_install.php

#
#-----[ OPEN ]--------------------------------------------
#
includes/bbcode.php

#
#-----[ FIND ]--------------------------------------------
#
      global $db, $board_config;

#
#-----[ REPLACE WITH ]------------------------------------
#
      global $db, $board_config, $phpbb_root_path;

#
#-----[ FIND ]--------------------------------------------
#
         $repl[] = '<img src="' . $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'] . '" alt="' . $smilies[$i]['smile_url'] . '" border="0" />';

#
#-----[ REPLACE WITH ]------------------------------------
#
         $repl[] = '<img src="' . $phpbb_root_path . $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'] . '" alt="' . $smilies[$i]['smile_url'] . '" border="0" />';

#
#-----[ OPEN ]--------------------------------------------
#
includes/constants.php

#
#-----[ FIND ]--------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]-------------------------------------
#
//
// phpBB easyCMS
//
include($phpbb_root_path . 'includes/cms_constants.'.$phpEx);

#
#-----[ OPEN ]--------------------------------------------
#
includes/functions_post.php

#
#-----[ FIND ]--------------------------------------------
#
					'SMILEY_IMG' => $board_config['smilies_path'] . '/' . $smile_url,

#
#-----[ REPLACE WITH ]------------------------------------
#
					'SMILEY_IMG' => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smile_url,

#
#-----[ OPEN ]--------------------------------------------
#
includes/page_header.php

#
#-----[ FIND ]--------------------------------------------
#
	'L_USERGROUPS' => $lang['Usergroups'],

#
#-----[ AFTER, ADD ]--------------------------------------
#
	'L_ARTICLES' => $lang['Articles'],

#
#-----[ FIND ]--------------------------------------------
#
	'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

#
#-----[ AFTER, ADD ]--------------------------------------
#
	'U_ARTICLES' => append_sid('cms_articles.'.$phpEx),

#
#-----[ OPEN ]--------------------------------------------
#
# Make sure to edit this file for every language installed
#
language/lang_english/lang_main.php

#
#-----[ FIND ]--------------------------------------------
#
//
// That's all, Folks!
// -------------------------------------------------

#
#-----[ BEFORE, ADD ]-------------------------------------
#
//
// phpBB easyCMS
//
$lang['Articles'] = 'Articles';

#
#-----[ OPEN ]--------------------------------------------
#
# Make sure to edit this file for every template installed
#
templates/subSilver/overall_header.tpl

#
#-----[ FIND ]--------------------------------------------
#
&nbsp;<a href="{U_FAQ}" class="mainmenu">

#
#-----[ BEFORE, ADD ]-------------------------------------
#
&nbsp;<a href="{U_ARTICLES}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_articles.gif" width="12" height="13" border="0" alt="{L_ARTICLES}" hspace="3" />{L_ARTICLES}</a>

#
#-----[ OPEN ]--------------------------------------------
#
# Make sure to edit this file for every template installed
#
templates/subSilver/subSilver.cfg

#
#-----[ FIND ]--------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]-------------------------------------
#
$images['icon_approve'] = "$current_template_images/{LANG}/icon_approve.gif";

#
#-----[ SAVE & CLOSE ALL FILES ]--------------------------
#
